package com.haogu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_crm_sms_record")
public class Record {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer userId;
    private String telephone;
    private String content;
    private Date sendtime;
    private String receiverName;

    public Record(Integer userId, String telephone, String content, Date sendtime,String receiverName) {
        this.userId = userId;
        this.telephone = telephone;
        this.content = content;
        this.sendtime = sendtime;
        this.receiverName = receiverName;
    }
}
